import moment from 'moment'

export function fomatTime(date, pattern) {
  if (pattern === '' || pattern === undefined) {
    pattern = 'YYYY-MM-DD HH:mm:ss'
  }
  return moment(date).format(pattern)
}

